package Entity;

public class Orders {
    // 产品名称
    private String name;
    // 产品类别
    private String category;
    // 产品组标识符
    private int groupId;
    // 产品库存数量
    private int stock;
    // 发货柜台
    private OutboundCounter counter;

    public Orders(String name, String category, int groupId, int stock, OutboundCounter counter) {
        this.name = name;
        this.category = category;
        this.groupId = groupId;
        this.stock = stock;
        this.counter = counter;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", groupId=" + groupId +
                ", stock=" + stock +
                ", counter='" + counter + '\'' +
                '}';
    }

    public String getName() {return name;
    }

    public String getCategory() {return category;
    }

    public int getGroupId() {return groupId;
    }

    public int getStock() {return stock;
    }
    public OutboundCounter getCounter(){
        return counter;
    }

}
